{% extends "base.html" %}
{% block title %}类别列表{% endblock %}
{% block content %}
<div id="contentlist">
<table width="600px" cellspacing="0" cellpadding="0" border="1px">
<tr>
<th>名称</th>
<th>描述</th>
<th>上一级</th>
<th>日期</th>
<th>操作</th>
</tr>
			{% recurse category in cats children="children" indent=(0,20) %}
				<tr>
                <td><span style="margin-left:{{indent}}px;">{{ category.name }}</span></td>
                <td>{{ category.desc }}</td>
                <td>{{ category.parentCategory.name }}</td>
                <td>{{ category.created }}</td>
                <td><a href="/phone/category?action=delete&id={{category.key.id}}">删除</a> 修改</td>
                </tr>
			  	{% yield %}
			{% endrecurse %}
</table>
</div>
{% endblock %}